﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Platform;
using Repository.Core.Models.Queries;
using Repository.Core.Models.VO;

namespace Repository.Core.Providers
{
    [AutoRegister]
    public interface IPublishProvider
    {
        string GetItemContent(string repoName, string versionSetName);

        bool Publish(string repoName, SystemIdentity identity, string versionSetName, long? versionId);

        ResultObject<IEnumerable<PublishVo>> Query(string repoName, PagedQueryObject<CommonQuery> request);
    }
}
